/** When your routing table is too long, you can split it into small modules **/

export const Layout = () => import('@/layout/index.vue');
//本地开发环境路由
export  const localDevRoutes = [{
	path: '/codegen',
	component: Layout,
	//redirect: 'noRedirect',
	name: 'codegen', 
	meta: {
		roles: ['dev'],
		title: '代码生成',
		icon: 'homepage',
		alwaysShow: true,
	},
	children: [{
	    path: '/codegen/menu',
	    component: () => import('@/codegen/views/menu/index.vue'),
		//componentPath: "error-page/404",  //字符串形式指定组件路径，前缀自动加上"@/views/"，后缀自动加上".vue"
	    name: 'codegen_menu',
	    meta: {
	      roles: ['dev'],
	      title: '菜单配置',
	      icon: 'el-icon-place'
	    }
	},{
	    path: '/codegen/pagegen',
	    component: () => import('@/codegen/views/pagegen/index.vue'),
		//componentPath: "error-page/404",  //字符串形式指定组件路径，前缀自动加上"@/views/"，后缀自动加上".vue"
	    name: 'codegen_pagegen',
	    meta: {
	      roles: ['dev'],
	      title: '页面生成',
	      icon: 'el-icon-place'
	    }
	}]
}]

//const localAsyncRoutes = [
	/*{
	path: '/codegen',
	component: Layout,
	//redirect: 'noRedirect',
	name: 'codegen', 
	meta: {
		roles: ['admin'],
		title: '代码生成',
		icon: 'homepage',
		alwaysShow: true,
	},
	children: [{
	    path: '/codegen/menu',
	    component: () => import('@/views/system/menu/index.vue'),
		//component: "error-page/404",  //字符串形式指定组件路径，前缀自动加上"@/views/"，后缀自动加上".vue"
	    name: 'admin_area',
	    meta: {
	      roles: ['admin'],
	      title: '菜单配置',
	      icon: 'el-icon-place'
	    }
	}]
}*/
//]
//export default localAsyncRoutes
